import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 自适应
import "lib-flexible";
// 初始化css
import "@/assets/css/reset.css";
//vant UI组件库
import { Icon, List, Rate, Field, Popup, Skeleton } from 'vant';
//设置跳转别的页面显示在顶部
router.afterEach((to, from, next) => {
    if (to.path == '/article') {
        window.scrollTo(0, 0);
    }
})
createApp(App).use(Icon).use(Skeleton).use(Popup).use(Field).use(Rate).use(List).use(store).use(router).mount('#app')

console.log(process.env.VUE_APP_BASE_API);